home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20041116-20060924 / 000009_fdc@columbia.edu_Tue Nov 23 15:13:30 2004.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Path: newsmaster.cc.columbia.edu!not-for-mail
  2. From: Frank da Cruz <fdc@columbia.edu>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Newbie question for telnet sessions
  5. Date: 23 Nov 2004 20:13:19 GMT
  6. Organization: Columbia University
  7. Lines: 60
  8. Message-ID: <slrncq76ev.fi0.fdc@sesame.cc.columbia.edu>
  9. References: <AwIod.98318$Tq1.57885@bignews1.bellsouth.net> <1101230534.894105.269980@c13g2000cwb.googlegroups.com>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: sesame.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1101240799 20178 128.59.59.56 (23 Nov 2004 20:13:19 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 23 Nov 2004 20:13:19 GMT
  15. User-Agent: slrn/0.9.8.0 (SunOS)
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15238
  17.  
  18. On 2004-11-23, Mark Sapiro <slash_dev_slash_null_2000@yahoo.com> wrote:
  19. :
  20. : Nick Leachman wrote:
  21. :> The one item I can't find in the docs though is how to stop the whole
  22. :> session window from closing after a telnet session is expired by a router
  23. :> timeout. I would like the window to stay open with all of the received
  24. :> output from the session still available for copy, etc.
  25. :
  26. : What you want is the command
  27. :
  28. : set exit on-disconnect off
  29. :
  30. : You can issue this command in your login script if you're using the
  31. : dialer or in one of the k95site.ini or k95custom.ini files.
  32. :
  33. That's not exactly it.  It prevents Kermit 95 from terminating, but not
  34. from returning to its command screen, which always happens automatically
  35. whenever a network connection closes (or a serial connection loses the
  36. Carrier signal and CARRIER-WATCH is not OFF).
  37.  
  38. You can go back and visit a closed session in read-only mode with the
  39. VIEW command.  In this mode, your status line says VIEW ONLY on the right,
  40. and any keystrokes that would send data to the host are ignored, but you
  41. can still scroll the session back, print the screen, copy with the mouse,
  42. or save the scrollback buffer to a file.
  43.  
  44. Should you wish Kermit to remain in its terminal screen after a network
  45. connection is broken, automatically switching to VIEW mode, you could use
  46. a little script like this:
  47.  
  48.   set host somehost.com
  49.   if fail stop 1 "Can't creat session"
  50.   while true {
  51.       connect
  52.       if not open connection {
  53.           view
  54.           break
  55.       }
  56.   }
  57.  
  58. The only problem with this is that you can't escape back during a session
  59. and give commands at the prompt.  In case you need to do that too:
  60.  
  61.   set host somehost.com
  62.   if fail stop 1 "Can't creat session"
  63.   while true {
  64.       connect
  65.       if not open connection {
  66.           view
  67.           break
  68.       } else {
  69.           prompt
  70.       }
  71.   }
  72.  
  73. The PROMPT command enters a kind of "subshell" (an inferior command level).
  74. To return to the script (i.e. to the CONNECT loop), you would type "end"
  75. instead of "connect".
  76.  
  77. - Frank